package org.gr.ias.common.entity;

import java.io.Serializable;

public class CapitalInvestmentExtFinancial implements Serializable {
    /** 主键*/
    private String id;

    /** 对应投资信息ID*/
    private String capitalInvestmentId;

    /** 风险偏好：
            01-进取型
            02-稳健型*/
    private String riskAppetite;

    /** 产品偏好：
            01-银行理财
            02-信托产品
            03-有限合伙
            04-阳光私募
            05-私募股权
            06-券商集合
            07-一对多
            08-私募债
            09-其他*/
    private String productAppetite;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getCapitalInvestmentId() {
        return capitalInvestmentId;
    }

    public void setCapitalInvestmentId(String capitalInvestmentId) {
        this.capitalInvestmentId = capitalInvestmentId == null ? null : capitalInvestmentId.trim();
    }

    public String getRiskAppetite() {
        return riskAppetite;
    }

    public void setRiskAppetite(String riskAppetite) {
        this.riskAppetite = riskAppetite == null ? null : riskAppetite.trim();
    }

    public String getProductAppetite() {
        return productAppetite;
    }

    public void setProductAppetite(String productAppetite) {
        this.productAppetite = productAppetite == null ? null : productAppetite.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CapitalInvestmentExtFinancial other = (CapitalInvestmentExtFinancial) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCapitalInvestmentId() == null ? other.getCapitalInvestmentId() == null : this.getCapitalInvestmentId().equals(other.getCapitalInvestmentId()))
            && (this.getRiskAppetite() == null ? other.getRiskAppetite() == null : this.getRiskAppetite().equals(other.getRiskAppetite()))
            && (this.getProductAppetite() == null ? other.getProductAppetite() == null : this.getProductAppetite().equals(other.getProductAppetite()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCapitalInvestmentId() == null) ? 0 : getCapitalInvestmentId().hashCode());
        result = prime * result + ((getRiskAppetite() == null) ? 0 : getRiskAppetite().hashCode());
        result = prime * result + ((getProductAppetite() == null) ? 0 : getProductAppetite().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", capitalInvestmentId=").append(capitalInvestmentId);
        sb.append(", riskAppetite=").append(riskAppetite);
        sb.append(", productAppetite=").append(productAppetite);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}